<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['算法管理','待标定队列']" icon="fa fa-subscript" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>待标定队列</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn" style="width: calc(100% - 300px);">
								<sa-company-tree-car companyTreeId="companyTree" (companySelected)="companySelected($event)"></sa-company-tree-car>
								<div class="top_module top_module_box" style="min-width: auto;">
									<span class="top_module_label module_text">时间类型</span>
									<select name="" class="top_module_select" style="min-width: 110px;" [(ngModel)]="timeType">
										<option value="1">创建时间</option>
										<option value="2">标定时间</option>
										<option value="3">更新时间</option>
									</select>
								</div>
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>
								<div class="top_module" style="min-width: auto;">
									<span class="module_text">地磅数据</span>
									<select id="" class="top_module_select" [(ngModel)]='wbdNum'>
										<option value="">全部</option>
										<option value="0">0</option>
										<option value="1">1</option>
										<option value="2">2</option>
										<option value="3">3</option>
										<option value="4">4</option>
										<option value="5">5</option>
										<option value="6">6</option>
										<option value="7">7</option>
										<option value="8">8</option>
										<option value="9">9</option>
										<option value="10">10</option>
										<option value="11">11</option>
										<option value="12">12</option>
										<option value="13">13</option>
										<option value="14">14</option>
										<option value="15">15</option>
									</select>
								</div>
								<div class="top_module top_module_box">
									<span class="top_module_label module_text">加入类型</span>
									<select class="top_module_select" [(ngModel)]="joinType">
										<option value="">全部</option>
										<option value="1">新装车辆添加</option>
										<option value="2">维修车辆添加</option>
										<option value="3">传感器切换添加</option>
										<option value="4">定时任务添加</option>
									</select>
								</div>
								<button class="btn btn-primary" (click)="table_search()">查询</button>
								<!--<button class="btn btn-primary" (click)="table_clear()">清空</button>-->
							</div>
							<!-- <div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="table_search()" class="search-input" placeholder="公司、车牌号、设备ID...">
								<span class="top-search-box">
										<button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
								</span>
							</div> -->
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>车牌号码</th>
										<th>设备编码</th>
										<th>公司名称</th>
										<th>等待地磅数量</th>
										<th>加入类型</th>
										<th>创建时间</th>
										<th>标定时间</th>
										<th>更新时间</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i">
										<td>{{row.carNumber}}</td>
										<td>{{row.deviceId}}</td>
										<td>{{row.companyName}}</td>
										<td>{{row.wbdNum}}</td>
										<td>
											<span *ngIf="row.type == 1">新装车辆添加</span>
											<span *ngIf="row.type == 2">维修车辆添加</span>
											<span *ngIf="row.type == 3">传感器切换添加</span>
											<span *ngIf="row.type == 4">定时任务添加</span>
										</td>
										<td>{{row.createTime}}</td>
										<td>{{row.calibrationTime}}</td>
										<td>{{row.uploadTime}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
												[rows]="pageSize"
												[currentPage]="curPage - 1"
												(onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>